<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //打印0~100之间的偶数
    let i=0;
    while(i<=100){
       if(i%2==0){
        console.log(i);
       }
       i++;
    }

    console.log('--------------------------');
    //打印0~100之间的偶数且遇到55结束程序
    let j=0;
    while(j<=100){
        if(j%2==0){
            console.log(j);
        }else if(j==55){
            break;
        }
        j++;
    }
</script>
</html>